package com.fire.user.dao;

import com.fire.user.model.User;
import com.baomidou.mybatisplus.mapper.BaseMapper;
import org.springframework.stereotype.Repository;

/**
 * <p>
 * 用户表 Mapper 接口
 * </p>
 *
 * @author MIT123
 * @since 2018-04-16
 */
public interface UsersMapper extends BaseMapper<User> {
  
    /**
     * 验证手机号是否注册
     * @param phone
     * @return
     */
    User selectByPhone(String phone);
    
    /**
	 * 新增用户
	 * @param user
	 * @return 用户ID
	 */
    void insertUser(User user);

    /**
     * 查询用户信息
     * @param users
     * @return
     */
    User selectByUser(User users);
}
